package com.jade.zsy.base.entity;

import com.jade.bss.db.IdEntity;
import com.jade.zsy.base.common.StatusConstant;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 店铺主表管理
 * User: Administrator
 * Date: 2016-4-10
 * Time: 10:26
 * Version : 1.0
 * Remark:
 * History:
 */
@Entity
@Table(name = "STORE_INFO")
public class Store extends IdEntity {
    public static final int WECHAT_STORE = 1;//微店
    public static final int NEWWORK_STORE = 3;//网店
    public static final int ENTITY_STORE = 5;//实体店
    /**
     * 类型  1: 微店
     */
    @Column(name = "type", nullable = false, updatable = false)
    private int type=ENTITY_STORE;
    /**
     * 店铺编码
     */
    @Column(name = "code", nullable = true, updatable = true,length = 25)
    private String code;
    /**
     * 店铺推广编号 系统自动生成
     */
    @Column(name = "syscode", nullable = true, updatable = true,length = 25)
    private String syscode;
    /**
     * 店铺名称
     */
    @Column(name = "name", nullable = false, updatable = true,length = 25)
    private String name;
    /**
     * 主营类目
     */
    @Column(name = "category", nullable = false, updatable = false,length = 25)
    private String category;
    /**
     * 店铺Logo
     */
    @Column(name = "logo", nullable = true, updatable = true)
    private String logo;
    /**
     * 店铺简介
     */
    @Column(name = "info", nullable = true, updatable = true)
    private String info;
    /**
     * 联系方式
     */
    @Column(name = "phone", nullable = false, updatable = true,length = 25)
    private String phone;
    /**
     * 联系人
     */
    @Column(name = "person", nullable = false, updatable = true,length = 50)
    private String person;
    /**
     * QQ
     */
    @Column(name = "qq", nullable = true, updatable = true,length = 25)
    private String qq;
    /**
     * 邮箱
     */

    @Column(name = "email", nullable = true, updatable = true)
    private String email;
    /**
     * 省市区
     */
    @Column(name = "province", nullable = true, updatable = true,length = 25)
    private String province;
    /**
     * 省市区
     */
    @Column(name = "city", nullable = true, updatable = true,length = 25)
    private String city;
    /**
     * 省市区
     */
    @Column(name = "district", nullable = true, updatable = true,length = 25)
    private String district;
    /**
     * 详细地址
     */
    @Column(name = "address", nullable = true, updatable = true)
    private String address;
    /**
     * 经度
     */
    @Column(name = "longitude", nullable = true, updatable = true)
    private double longitude=0;
    /**
     * 纬度
     */
    @Column(name = "latitude", nullable = true, updatable = true)
    private double latitude=0;
    /**
     * 营业时间
     */
    @Column(name = "business_hours", nullable = true, updatable = true,length = 25)
    private String businessHours;
    /**
     * 会员导入数量
     */
    @Column(name = "crmCount", nullable = false, updatable = true)
    private int crmCount=0;
    /**
     * 店铺主题
     */
    @Column(name = "theme", nullable = false, updatable = false)
    private int theme=0;
    /**
     * 微信ID  默认用智胜云店的公众号ID
     */
    @Column(name = "wxAppId", nullable = true, updatable = true,length = 25)
    private String wxAppId;
    /**
     * 二维码图片编号
     */
    private long wxQrcodeId=0;
    /**
     * 二维码图片解析后的地址
     */
    private String wxSceneStr;
    /**
     * 二维码图片解析后的地址 生成的图片地址
     */
    private String wxSceneStrPic;
    /**
     * 默认导购
     */
    @Column(name = "defaultEmployeeId", nullable = true, updatable = true,length = 25)
    private long defaultEmployeeId=0;
    @Column(name = "defaultEmployeeName", nullable = true, updatable = true,length = 25)
    private String defaultEmployeeName;
    /**
     * 商家推荐
     */
    @Column(name = "remark", nullable = true, updatable = true)
    private String remark;
    /**
     * 省市区
     */
    @Column(name = "returnProvince", nullable = true, updatable = true,length = 25)
    private String returnProvince;
    /**
     * 省市区
     */
    @Column(name = "returnCity", nullable = true, updatable = true,length = 25)
    private String returnCity;
    /**
     * 省市区
     */
    @Column(name = "returnDistrict", nullable = true, updatable = true,length = 25)
    private String returnDistrict;
    @Column(name = "returnAddress", nullable = true, updatable = true)
    private String returnAddress;
    /**
     * 关闭订单时间
     */
    @Column(name = "orderClose", nullable = true, updatable = true)
    private int orderClose=0;
    /**
     * 催促买家付款
     */
    @Column(name = "orderUrged", nullable = true, updatable = true)
    private int orderUrged=0;
    /**
     *  订单支付成功通知
     */
    @Column(name = "orderPaySucMsg", nullable = true, updatable = true)
    private int orderPaySucMsg=0;
    /**
     *  订单发货通知
     */
    @Column(name = "orderDeliveyMsg", nullable = true, updatable = true)
    private int orderDeliveyMsg=0;
    /**
     *  订单发货通知
     */
    @Column(name = "orderRights", nullable = true, updatable = true)
    private int orderRights=0;
    @Column (columnDefinition = "int default 0",name = "status", updatable = true, nullable = true)
    private int status= StatusConstant.RECORD_INIT; /** 状态  0：正常  9：已停用 **/
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getReturnProvince() {
        return returnProvince;
    }

    public void setReturnProvince(String returnProvince) {
        this.returnProvince = returnProvince;
    }

    public String getReturnCity() {
        return returnCity;
    }

    public void setReturnCity(String returnCity) {
        this.returnCity = returnCity;
    }

    public String getReturnDistrict() {
        return returnDistrict;
    }

    public void setReturnDistrict(String returnDistrict) {
        this.returnDistrict = returnDistrict;
    }

    public String getReturnAddress() {
        return returnAddress;
    }

    public void setReturnAddress(String returnAddress) {
        this.returnAddress = returnAddress;
    }

    public int getOrderClose() {
        return orderClose;
    }

    public void setOrderClose(int orderClose) {
        this.orderClose = orderClose;
    }

    public int getOrderUrged() {
        return orderUrged;
    }

    public void setOrderUrged(int orderUrged) {
        this.orderUrged = orderUrged;
    }

    public int getOrderPaySucMsg() {
        return orderPaySucMsg;
    }

    public void setOrderPaySucMsg(int orderPaySucMsg) {
        this.orderPaySucMsg = orderPaySucMsg;
    }

    public int getOrderDeliveyMsg() {
        return orderDeliveyMsg;
    }

    public void setOrderDeliveyMsg(int orderDeliveyMsg) {
        this.orderDeliveyMsg = orderDeliveyMsg;
    }

    public int getOrderRights() {
        return orderRights;
    }

    public void setOrderRights(int orderRights) {
        this.orderRights = orderRights;
    }


    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPerson() {
        return person;
    }

    public void setPerson(String person) {
        this.person = person;
    }

    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getDistrict() {
        return district;
    }

    public void setDistrict(String district) {
        this.district = district;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public double getLongitude() {
        return longitude;
    }

    public void setLongitude(double longitude) {
        this.longitude = longitude;
    }

    public double getLatitude() {
        return latitude;
    }

    public void setLatitude(double latitude) {
        this.latitude = latitude;
    }

    public String getBusinessHours() {
        return businessHours;
    }

    public void setBusinessHours(String businessHours) {
        this.businessHours = businessHours;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public int getTheme() {
        return theme;
    }

    public void setTheme(int theme) {
        this.theme = theme;
    }

    public String getWxAppId() {
        return wxAppId;
    }

    public void setWxAppId(String wxAppId) {
        this.wxAppId = wxAppId;
    }

    public String getSyscode() {
        return syscode;
    }

    public void setSyscode(String syscode) {
        this.syscode = syscode;
    }

    public long getWxQrcodeId() {
        return wxQrcodeId;
    }

    public void setWxQrcodeId(long wxQrcodeId) {
        this.wxQrcodeId = wxQrcodeId;
    }

    public String getWxSceneStr() {
        return wxSceneStr;
    }

    public void setWxSceneStr(String wxSceneStr) {
        this.wxSceneStr = wxSceneStr;
    }

    public String getWxSceneStrPic() {
        return wxSceneStrPic;
    }

    public void setWxSceneStrPic(String wxSceneStrPic) {
        this.wxSceneStrPic = wxSceneStrPic;
    }


    public long getDefaultEmployeeId() {
        return defaultEmployeeId;
    }

    public void setDefaultEmployeeId(long defaultEmployeeId) {
        this.defaultEmployeeId = defaultEmployeeId;
    }

    public String getDefaultEmployeeName() {
        return defaultEmployeeName;
    }

    public void setDefaultEmployeeName(String defaultEmployeeName) {
        this.defaultEmployeeName = defaultEmployeeName;
    }

    public int getCrmCount() {
        return crmCount;
    }

    public void setCrmCount(int crmCount) {
        this.crmCount = crmCount;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }
}
